﻿using System;
using System.Collections.Generic;
using System.Text;

namespace ConsoleApp1
{
    class ShopNPC:NPC 
    {
        private string item;
        private string name;
        public string Item
        {
            get => item;set => item = value;
        }
        public override void Speak()
        {
            Console.WriteLine("NPC:{0},我这里有{1}出售西瓜商品，你要不要买？",base.Name,this .item );

        }
        public ShopNPC(string name,NPCType type,string item):base (name ,type  ) {

            this.item = item;
        }
    }
}
